<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<html>
<head>
	<title>码上传情</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="decorator" content="default" />
	<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">
	
	<script type="text/javascript">
		
		function setFilePath(path){
			jQuery("#filePath").val(path);
		}
		
		
		
	</script>
	<style type="text/css">
		.rem{
			font-size: 9px;
			color: #F79F81;
		}
	</style>
</head>
<body>
	<form:form id="inputForm" modelAttribute="gift" action="${pageContext.request.contextPath}${fns:getFrontPath()}/gift/save" method="post"  enctype="multipart/form-data">
		<form:hidden path="id"/>
		<form:hidden path="user.id"/>
		<form:hidden path="qrCode.id"/>
		<form:hidden path="filePath" id="filePath"/>
		<tags:message content="${message}"/>
		
			<table data-role="table" id="my-table">
				<tr>
					<td>&nbsp;</td>
					<td>微信号:</td>
					<td><form:input path="name" htmlEscape="false" maxlength="50" class="required"/></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td nowrap="nowrap" valign="top">音频文件:</td>
					<td><input type="file"    name="voiceFile"   onchange="setFilePath(this.value)"  accept="audio/*" />
					<br><span class="rem">请上传mp3,wav,3gpp等音频文件，文件大小不得超过5M.如果您使用的是UC浏览器，请点击“文件”进行上传。</span>	</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td valign="top">设置密码:</td>
					<td><form:input path="password" htmlEscape="false" maxlength="50" />  
				<br><span class="rem">需要保密的语音，请设置密码，<br>不设置默认为不加密.</span> 
				</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td colspan="4" align="center"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/></td>
				</tr>
			</table>
		
				
			
	</form:form>
</body>
</html>
